package Test;

import entity.category;
import entity.tea;
import com.baizhi.service.UserService;
import com.baizhi.service.impl.UserServiceImpl;
import com.baizhi.service.impl.teaServiceImpl;
import com.baizhi.service.teaService;
import util.PageBean;

import java.util.List;

public class ServiceTest {
    public static void main(String[] args) {
        UserService a=new UserServiceImpl();
        boolean b = a.Login("李四", "12345");
        System.out.println(b);
    }
}
class ServiceTest1{
    public static void main(String[] args) {
        teaService a=new teaServiceImpl();
        PageBean<tea> page = a.page(new PageBean<>(), "");
        System.out.println(page);
    }
}
class ServiceTest2{
    public static void main(String[] args) {
        teaService a=new teaServiceImpl();
        boolean name = a.add(new tea(1, "name", 1, "", 1));
        System.out.println(name);
    }
}
class ServiceTest3{
    public static void main(String[] args) {
        teaService a=new teaServiceImpl();
        List<category> name = a.findoption();
        System.out.println(name);
    }
}
class ServiceTest4{
    public static void main(String[] args) {
        teaService a=new teaServiceImpl();
        boolean name = a.delete(18);
        System.out.println(name);
    }
}
class ServiceTest5{
    public static void main(String[] args) {
        teaService a=new teaServiceImpl();
        tea name = a.findone(19);
        System.out.println(name);
    }
}
class ServiceTest6{
    public static void main(String[] args) {
        teaService a=new teaServiceImpl();
        a.update(new tea(1,"ss",10,"ss",2),19);

    }
}
